# -*- coding: utf-8 -*-

"""
DateTime   : 2020/11/29 19:52
Author     : ZhangYafei
Description: 
"""
"""
1 * 1 = 1
2 * 1 = 2 2 * 2 = 4
3 * 1 = 3 3 * 2 = 6 3 * 3 = 9
... 
"""
i = 1
while i <= 9:
    j = 1
    while j <= i:
        # print("%d*%d=%d\t" % (j, i, i * j), end=" ")
        # print(f'{i}*{j}={i*j}\t', end=' ')
        print(f'{i}*{j}={i*j:<2}', end=' ')
        j += 1
    print()
    i += 1


for i in range(1, 10):
    for j in range(1, i + 1):
        print(f'{i}*{j}={i*j:<2}', end=' ')
    print()